<template>
  <div>
    <p>{{ count }}</p>
    <button @click="increment">Count++</button>
  </div>
</template>

<script setup lang="ts">
import { onMounted } from 'vue'
import useCount from './useCount'

const { count, increment } = useCount()

onMounted(() => {
  console.log('mounted index')
})
</script>

<style scoped></style>
